<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String instance = request.getServerName()+":"+request.getServerPort();

	session = request.getSession();
String info = (String)session.getAttribute("info");

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">

    <title>My JSP 'jsp1.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>

  <body>
    This is Demo page. <br>
        universal session ->{Id: <%=session.getId() %> , Create Time: <%= (new Date(session.getCreationTime())).toLocaleString() %> } 
    partner: ${param.instance} <br>
    partner passed info: :{ <%=info %>  } <br>
     
  <%
    info = "UUMemcachedSession Demo Info: " + Double.toString(Math.random()); 
    session.setAttribute("info",info);
  %> 
    
    pass info :{ <%=info %> } to next partner<br> 
    <a href="http://${param.instance}/UUMemcachedSession/jsp2.jsp?instance=<%=instance%>">Goto partner with Session</a>
  </body>
</html>
